package cn.wh.session;

/**
 * @Author wh
 * @Description 分页记录限制
 * @Date 2023/6/21 16:43
 * @Version 1.0
 **/
public class RowBounds {


    public static final int NO_ROW_OFFSET = 0;

    public static final int NO_ROW_LIMIT = Integer.MAX_VALUE;

    public static final RowBounds DEFAULT = new RowBounds();

    private int offset;

    private int limit;

    public RowBounds() {
        this.offset=NO_ROW_OFFSET;
        this.limit=NO_ROW_LIMIT;
    }

    public int getOffset(){
        return offset;
    }

    public int getLimit(){
        return limit;
    }


}
